program StockData;

uses
  Windows,
  Sysutils,
  VirtualTree_Editor in '..\..\..\..\devdcomps\virtualtree\VirtualTree_Editor.pas',
  VirtualTrees in '..\..\..\..\devdcomps\virtualtree\VirtualTrees.pas',
  SQLite3Wrap in '..\..\..\..\devdcomps\sqlite\SQLite3Wrap.pas',
  SQLite3Utils in '..\..\..\..\devdcomps\sqlite\SQLite3Utils.pas',
  SQLite3 in '..\..\..\..\devdcomps\sqlite\SQLite3.pas',
  nExcel in '..\..\..\..\devwintech\comps\nativeExcel310\nExcel.pas',
  QuickList_Int in '..\..\..\..\devwintech\comps\list\QuickList_Int.pas',
  QuickList_double in '..\..\..\..\devwintech\comps\list\QuickList_double.pas',
  QuickList_Int64 in '..\..\..\..\devwintech\comps\list\QuickList_Int64.pas',
  WinSock2 in '..\..\..\..\devwintech\common\WinSock2.pas',
  windef_msg in '..\..\..\..\devwintech\v0001\windef\windef_msg.pas',
  sysdef_string in '..\..\..\..\devwintech\v0001\sysdef\sysdef_string.pas',
  base.thread in '..\..\..\..\devwintech\v0001\rec\app_base\base.thread.pas',
  win.process in '..\..\..\..\devwintech\v0001\rec\win_sys\win.process.pas',
  win.wnd_cmd in '..\..\..\..\devwintech\v0001\rec\win_sys\win.wnd_cmd.pas',
  base.run in '..\..\..\..\devwintech\v0001\rec\app_base\base.run.pas',
  win.app in '..\..\..\..\devwintech\v0001\rec\win_app\win.app.pas',
  win.thread in '..\..\..\..\devwintech\v0001\rec\win_sys\win.thread.pas',
  BasePath in '..\..\..\devwintech\v0001\app_base\BasePath.pas',
  BaseApp in '..\..\..\devwintech\v0001\app_base\BaseApp.pas',
  BaseThread in '..\..\..\devwintech\v0001\app_base\BaseThread.pas',
  BaseFile in '..\..\..\devwintech\v0001\app_base\BaseFile.pas',
  BaseDataSet in '..\..\..\devwintech\v0001\app_base\BaseDataSet.pas',
  BaseWinApp in '..\..\..\devwintech\v0001\win_app\BaseWinApp.pas',
  BaseWinFormApp in '..\..\..\devwintech\v0001\win_app\BaseWinFormApp.pas',
  BaseForm in '..\..\..\devwintech\v0001\win_uiform\BaseForm.pas' {frmBase},
  BaseFrame in '..\..\..\devwintech\v0001\win_uiform\BaseFrame.pas' {fmeBase: TFrame},
  win.shutdown in '..\..\..\..\devwintech\v0001\winproc\win.shutdown.pas',
  BaseWinFile in '..\..\..\..\devwintech\v0000\win_base\BaseWinFile.pas',
  win.iobuffer in '..\..\..\..\devwintech\v0000\win_data\win.iobuffer.pas',
  xlNetwork in '..\..\..\..\devwintech\v0000\win_net\xlNetwork.pas',
  xlTcpClient in '..\..\..\..\devwintech\v0000\win_netclient\xlTcpClient.pas',
  xlClientSocket in '..\..\..\..\devwintech\v0000\win_netclient\xlClientSocket.pas',
  UtilsWindows in '..\..\..\..\devwintech\v0000\win_utils\UtilsWindows.pas',
  HTMLParserAll3 in '..\..\..\..\devstock\Utils\HTMLParserAll3.pas',
  db_dealitem in '..\..\dealitem\db_dealitem.pas',
  db_dealitem_load in '..\..\dealitem\db_dealitem_load.pas',
  db_dealitem_save in '..\..\dealitem\db_dealitem_save.pas',
  db_dealitem_loadIni in '..\..\dealitem\db_dealitem_loadIni.pas',
  DealItemsTreeView in '..\..\..\..\devstock\stockview\DealItemsTreeView.pas',
  BaseStockFormApp in '..\..\base\BaseStockFormApp.pas',
  StockAppPath in '..\..\base\StockAppPath.pas',
  define_tablefield in '..\..\define\define_tablefield.pas',
  define_datasrc in '..\..\define\define_datasrc.pas',
  define_datetime in '..\..\define\define_datetime.pas',
  define_dealitem in '..\..\define\define_dealitem.pas',
  define_price in '..\..\define\define_price.pas',
  define_stock_quotes in '..\..\define\define_stock_quotes.pas',
  define_dealstore_file in '..\..\define\define_dealstore_file.pas',
  define_dealstore_header in '..\..\define\define_dealstore_header.pas',
  define_stockapp in '..\..\define\define_stockapp.pas',
  define_dealmarket in '..\..\define\define_dealmarket.pas',
  define_message in '..\..\define\define_message.pas',
  define_stock_quotes_instant in '..\..\define\define_stock_quotes_instant.pas',
  define_deal in '..\..\define\define_deal.pas',
  define_timemachine in '..\..\define\define_timemachine.pas',
  DB_Stock in '..\..\data_stock\DB_Stock.pas',
  DB_Quote_Instant in '..\..\data_stock\DB_Quote_Instant.pas',
  StockDayDataAccess in '..\..\data_stock\StockDayDataAccess.pas',
  StockDayData_Load in '..\..\data_stock\StockDayData_Load.pas',
  StockDayData_Save in '..\..\data_stock\StockDayData_Save.pas',
  StockMinuteDataAccess in '..\..\data_stock\StockMinuteDataAccess.pas',
  StockMinuteData_Load in '..\..\data_stock\StockMinuteData_Load.pas',
  StockMinuteData_Save in '..\..\data_stock\StockMinuteData_Save.pas',
  StockDetailDataAccess in '..\..\data_stock\StockDetailDataAccess.pas',
  StockDetailData_Load in '..\..\data_stock\StockDetailData_Load.pas',
  StockDetailData_Save in '..\..\data_stock\StockDetailData_Save.pas',
  StockDayData_Get_163 in '..\..\data_stock\datasrc_163\StockDayData_Get_163.pas',
  StockDetailData_Get_163 in '..\..\data_stock\datasrc_163\StockDetailData_Get_163.pas',
  define_data_163 in '..\..\data_stock\datasrc_163\define_data_163.pas',
  define_data_sina in '..\..\data_stock\datasrc_sina\define_data_sina.pas',
  StockDayData_Get_Sina in '..\..\data_stock\datasrc_sina\StockDayData_Get_Sina.pas',
  StockDayData_Parse_Sina in '..\..\data_stock\datasrc_sina\StockDayData_Parse_Sina.pas',
  define_stockday_sina in '..\..\..\..\devstock\win_app_data\datasrc_sina\define_stockday_sina.pas',
  StockDayData_Parse_Sina_Html3 in '..\..\..\..\devstock\data_stock\datasrc_sina\StockDayData_Parse_Sina_Html3.pas',
  StockDetailData_Get_Sina in '..\..\data_stock\datasrc_sina\StockDetailData_Get_Sina.pas',
  StockInstantData_Get_Sina in '..\..\data_stock\datasrc_sina\StockInstantData_Get_Sina.pas',
  StockData_Import_wind in '..\..\data_stock\datasrc_wind\StockData_Import_wind.pas',
  StockData_Import_tdx in '..\..\data_stock\datasrc_tdx\StockData_Import_tdx.pas',
  define_data_wind in '..\..\..\..\devstock\data_stock\datasrc_wind\define_data_wind.pas',
  define_data_tdx in '..\..\..\..\devstock\data_stock\datasrc_tdx\define_data_tdx.pas',
  define_windprocess in '..\..\dealagent\define_windprocess.pas',
  define_zsprocess in '..\..\dealagent\define_zsprocess.pas',
  UtilsParentProcess in '..\..\utils\UtilsParentProcess.pas',
  UtilsDateTime in '..\..\utils\UtilsDateTime.pas',
  UtilsHttp in '..\..\utils\UtilsHttp.pas',
  UtilsHttp_Socket in '..\..\utils\UtilsHttp_Socket.pas',
  QuickSortList in '..\..\utils\QuickSortList.pas',
  QuickList_DealItem in '..\..\utils\QuickList_DealItem.pas',
  QuickList_DealClass in '..\..\utils\QuickList_DealClass.pas',
  QuickList_DayData in '..\..\utils\QuickList_DayData.pas',
  QuickList_MinuteData in '..\..\utils\QuickList_MinuteData.pas',
  QuickList_DetailData in '..\..\utils\QuickList_DetailData.pas',
  QuickList_QuoteInstant in '..\..\utils\QuickList_QuoteInstant.pas',
  QuickList_TimeEventItem in '..\..\utils\QuickList_TimeEventItem.pas',
  UtilsLog in '..\..\utils\UtilsLog.pas',
  WStrings in '..\..\utils\WStrings.pas',
  StockDataApp in 'StockDataApp.pas',
  SDConsoleForm in 'SDConsoleForm.pas' {frmSDConsole},
  StockDataConsoleApp in 'StockDataConsoleApp.pas',
  define_StockDataApp in 'define_StockDataApp.pas',
  StockDataDownloaderApp in 'StockDataDownloaderApp.pas',
  StockDealAgentApp in 'StockDealAgentApp.pas',
  StockDataConsoleTask in 'StockDataConsoleTask.pas',
  StockDataConsoleProcessTaskWndProc in 'StockDataConsoleProcessTaskWndProc.pas',
  StockDataTaskConsole in 'StockDataTaskConsole.pas',
  SDFrameDataViewer in 'SDFrameDataViewer.pas' {fmeDataViewer: TFrame},
  SDFrameDealItemViewer in 'SDFrameDealItemViewer.pas' {fmeDealItemViewer: TFrame},
  SDFrameWindData in 'SDFrameWindData.pas' {fmeWindData: TFrame},
  SDFrameTDXData in 'SDFrameTDXData.pas' {fmeTDXData: TFrame},
  StockDataAutoDownloadApp in 'StockDataAutoDownloadApp.pas';

{$R *.res}

var
  GlobalApp: TStockDataApp = nil;
  // nExcel in '..\..\..\..\devwintech\comps\nativeExcel310\nExcel.pas',
begin
  {$IFDEF LOG}
  //Log('StockData.dpr', 'App Run');
  {$ENDIF}
  GlobalApp := TStockDataApp.Create('TStockDataApp');
  try
    if GlobalApp.Initialize then
      GlobalApp.Run;
    GlobalApp.RunStatus := RunStatus_RequestShutdown;  
    //Log('StockData.dpr', 'RequestShutdown');
    GlobalApp.Finalize;
    //Log('StockData.dpr', 'Finalize');    
  finally         
    GlobalApp.RunStatus := RunStatus_Shutdown;
    GlobalApp.Free;
  end;                                    
  //Log('StockData.dpr', 'App End');
end.
